<script setup>
import PlanList from './plan-list.vue';
import CreateImportant from './create-important.vue';

const store = useStore();
const implementationPlanPage = computed(() => store.getters.getImplementationPlanPage);

onBeforeUnmount(() => {
  store.commit('CHANGE_PAGE', 'list');
});
</script>

<template>
  <create-important v-if="implementationPlanPage === 'important'"></create-important>
  <plan-list v-else></plan-list>
</template>

<style lang="scss" scoped></style>
